package com.autumn.cloud.demo.provider.services.dubbo;

import com.autumn.cloud.demo.dubbo.api.bo.OrderInfoBO;
import com.autumn.cloud.demo.dubbo.api.services.OrderApiService;

import java.util.List;

/**
 * <p>
 * </p>
 *
 * @description TODO
 * @author: 老码农
 * @create: 2020-12-16 15:14
 **/
@com.alibaba.dubbo.config.annotation.Service(group = "g2")
@org.springframework.stereotype.Service
public  class OrderApiServiceG2Impl extends AbstractOrderApiService implements OrderApiService {

    @Override
    public List<OrderInfoBO> orders() {
        List<OrderInfoBO> items = super.orders();
        for (OrderInfoBO item : items) {
            item.setOrderTitle(item.getOrderTitle() + "[Group-2]");
        }
        return items;
    }

}
